import request from '@/utils/request'

export const getList = (id: number) =>
  request({
    url: `/api/follow/list/${id}`,
    method: 'get',
  })

export const getFollow = (id: number) =>
  request({
    url: `/api/follow/${id}`,
    method: 'get',
  })

export const createFollow = (data: any) =>
  request({
    url: '/api/follow/create',
    method: 'post',
    data
  })

export const updateFollow = (id: number, data: any) =>
  request({
    url: `/api/follow/${id}`,
    method: 'put',
    data
  })

export const deleteFollow = (id: number) =>
  request({
    url: `/api/follow/${id}`,
    method: 'delete',
  })
